<html>
<head>
<title>管理系统</title>
<meta http-equiv=Content-Type content=text/html;charset=utf-8>
<#include "../inc/commonJs.html">
<script type="text/JavaScript"> 
	function saveObj(logid,zt,nextobj){
		var url = 'editTaskLog.do';
		if(zt==0){
			url = 'tuiTaskLog.do';
		}
		$('form').form('submit',{  
		    url:url,
		    onSubmit:function(param){
		    	param.zt = zt;    
        		param.logid = logid;
				return $(this).form('validate')
		    },  
		    success:function(data){
		    	if(nextobj)	nextobj.datagrid('reload');
				top.closemodalwindow(data);
		    }  
		});
	}
	$(function(){
		$('#userid').combobox('setValue','${obj.fromuser!}');
	})
</script>

</head>
<body>
 <form method="post" name="taskLogForm" id="taskLogForm">
	<table width="98%" class="table_all" cellpadding="0" cellspacing="0" border="0" align="center">
	 <tr>
	 	<td class="td_table_1">名称：</td>
	 	<td class="td_table_2">
	 		<input class="easyui-validatebox" type="text" required="true" id="name" name="name" maxlength="30" style="width:200px;" value="${obj.name!}">
	 	</td>
	 </tr>
	 <#if zt?string =='0' >
		 <tr>
		 	<td class="td_table_1">状态：</td>
		 	<td class="td_table_2">
		 		<select id="taskzt" disabled=true class="easyui-combobox" name="zt" style="width:200px;" panelHeight="100px">   
				    <option value="0" selected = 'true'>转办</option>
				    <option value="1">进行中</option>   
				    <option value="2">完成</option>   
				</select>
		 	</td>
		 </tr>
		 <tr>
		 	<td class="td_table_1">操作人：</td>
		 	<td class="td_table_2">
		 		<input id="userid" class="easyui-combobox" name="userid"  style="width:200px;" panelHeight:"auto" data-options="panelHeight:110,valueField:'userid',textField:'username',url:'../system/listUserForCombox.do'" />
		 	</td>
		 </tr>
	 </#if>
	 <tr>
	 	<td class="td_table_1">说明：</td>
	 	<td class="td_table_2">
	 		<textarea rows="10" id="demo" name="demo" style="width:300px;">${obj.demo!}</textarea>
	 	</td>
	 </tr>
	</table>
</form>
</body>
</html>